﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Hotel.UI.Common
{
    public class Request
    {
        public Action<Response> CallBack;
        public DateTime CreateTime;
        public Request()
        {
            CreateTime = DateTime.Now;
        }
        public Request(Action<Response> callback) : this()
        {
            CallBack = callback;
        }
        /// <summary>
        /// sockect,或者webapi
        /// </summary>
        public string Protocol { get; set; } = "webapi";
        public string Route { get; set; } = @"Login/CheckLogin";

        public string RequestId { get; set; } = new Guid().ToString();

        public object Parameter;

        public string Token { get; set; }
    }
}
